package domain

type TaskReport struct {
	BaseDomain
	ParentId     *int         `json:"parent_id"`
	TaskRecordId *int         `json:"task_record_id"`
	ErrorMsg     *string      `json:"error_msg"`
	Result       *string      `json:"result"`
	Status       *int         `json:"status"`
	Children     []TaskReport `json:"children" gorm:"many2many:t_task_report;association_jointable_foreignkey:task_report_id"`
}

func (t *TaskReport) TableName() string {
	return "t_task_report"
}
